﻿using System;
using UnityEngine;

namespace Valve.VR.InteractionSystem
{
	// Token: 0x0200064B RID: 1611
	public class SoundBowClick : MonoBehaviour
	{
		// Token: 0x060028E4 RID: 10468 RVA: 0x000EDE98 File Offset: 0x000EC098
		private void Awake()
		{
			this.thisAudioSource = base.GetComponent<AudioSource>();
		}

		// Token: 0x060028E5 RID: 10469 RVA: 0x000EDEA8 File Offset: 0x000EC0A8
		public void PlayBowTensionClicks(float normalizedTension)
		{
			float num = this.pitchTensionCurve.Evaluate(normalizedTension);
			this.thisAudioSource.pitch = (this.maxPitch - this.minPitch) * num + this.minPitch;
			this.thisAudioSource.PlayOneShot(this.bowClick);
		}

		// Token: 0x04002908 RID: 10504
		public AudioClip bowClick;

		// Token: 0x04002909 RID: 10505
		public AnimationCurve pitchTensionCurve;

		// Token: 0x0400290A RID: 10506
		public float minPitch;

		// Token: 0x0400290B RID: 10507
		public float maxPitch;

		// Token: 0x0400290C RID: 10508
		private AudioSource thisAudioSource;
	}
}
